-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VL] Customize VCPKG build features according to user's build options #7052
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
749c594
to
a938b8f
Compare
0d8a702
to
8006034
Compare
export VCPKG_TRIPLET_INSTALL_DIR=${SCRIPT_ROOT}/vcpkg_installed/${VCPKG_TRIPLET} | ||
export EXPORT_TOOLS_PATH="${VCPKG_TRIPLET_INSTALL_DIR}/tools/protobuf" | ||
|
||
if [ "\${GLUTEN_VCPKG_ENABLED:-}" != "${VCPKG_ROOT}" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"\${GLUTEN_VCPKG_ENABLED:-}"
or "${GLUTEN_VCPKG_ENABLED:-}"
?
export VCPKG_TRIPLET=${VCPKG_TRIPLET} | ||
|
||
export CMAKE_TOOLCHAIN_FILE=${SCRIPT_ROOT}/toolchain.cmake | ||
export PKG_CONFIG_PATH=${VCPKG_TRIPLET_INSTALL_DIR}/lib/pkgconfig:${VCPKG_TRIPLET_INSTALL_DIR}/share/pkgconfig:\${PKG_CONFIG_PATH:-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\${PKG_CONFIG_PATH:-}
vs ${PKG_CONFIG_PATH:-}
?
init_vcpkg_env=$("${SCRIPT_ROOT}/init.sh" $@) | ||
eval "$init_vcpkg_env" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this eval
?
The change breaks one of my daily benchmark jobs. Relevant log: https://gist.github.com/zhztheplayer/f3f4d946d42060694c743f32ab38ba7b |
What changes were proposed in this pull request?
When vcpkg is enabled, installing native dependencies related to test, hdfs, s3, gcs and abfs should be optional, which depends on user-specified build options. We can put always-required dependencies as vcpkg default feature and enable other feature according to build option.
How was this patch tested?
CI.